process.env.NODE_ENV = 'development';
process.env.BABEL_ENV = 'development';

const fs = require("fs");
const path = require("path");
const { solution } = require("webpack-pipe");
const { formatWebpackConf, webpackConfParams } = require("./mkWebpackConfig");

solution.antSolution.dev({
	port: "5555",
	isWebpackHRM: false,
	webpackConfParams,
	formatWebpackConf,
	devServerConfig:{
		clientLogLevel: "error",
		// http2: true,
		http2: false,
		compress: false,
		// https: {
		// 	key: fs.readFileSync(path.resolve(__dirname, './ssl/dev_http_server.key')),
		// 	cert: fs.readFileSync(path.resolve(__dirname,'./ssl/dev_http_server.crt')),
		// }
	}
});


